<%@page contentType="text/html; charset=UTF-8" language="java"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>修改登录密码</title>
		<style type="text/css">
		<!--
		body {
			background-image: url(images/page_bg.gif);
			margin-left: 0px;
			margin-top: 0px;
			margin-right: 0px;
			margin-bottom: 0px;
		}
		body,td,th {
			font-size: 12px;
		}
		-->
		</style>
		<link href="css/css.css" rel="stylesheet" type="text/css">

		<style type="text/css">
<!--
.style4 {color: #FF0000}
.style6 {
	font-size: 16px;
	color: #66CCFF;
	font-weight: bold;
}
--> 
        </style>
        <script language="javascript" type="text/jscript">
        	//验证表单
			function vilidateSubmit(){
				var hideStr="";
				var passw=document.getElementById("basicinfoModel_passw").value;
				var passw1=document.getElementById("basicinfoModel_passw1").value;
		    	if(passw==""){
		    		hideStr=hideStr+"密码不能为空！\n\n";
		    	}
				if(passw1==""){
		    		hideStr=hideStr+"确认密码不能为空！\n\n";
		    	}
		    	if(hideStr!=""){
		    		alert(hideStr);
		    		return false;
		    	}
				if(!isValid(passw)){
					alert("密码只能由字母和数字组成，不能含有其它非法字符！");
					return false;
				}
				if(passw!=passw1){
					alert("密码和确认密码去一致，请重新输入！");
					document.getElementById('basicinfoModel_passw').value="";
					document.getElementById('basicinfoModel_passw1').value="";
					return false;
				}
		    	return true;
		    }
		</script>
		<script src="js/common.js" type="text/javascript"> </script>
		<script src="js/Function.js" type="text/javascript"></script>
	</head>
	<body bgcolor="#FFFFFF">
			<table border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td height="64" align="left" valign="top"
					background="images/top-titleBG.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td align="left" valign="top">
								<img src="images/top-title.gif" width="364" height="48">
							</td>
							<td valign="top"
								style="background-image:url(images/top-botton.gif); background-repeat:no-repeat; background-position:center top; width:200px; text-align:center">
								<div style="padding-top:10px; ">
									<a href="#" style="color:#000000;  text-decoration:none; "
										onClick="setashomepage('all');">设为首页</a> |
									<a href="#" style="color:#000000;  text-decoration:none; "
										onClick="addtofavorite('all');">加入收藏</a>
								</div>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<img src="images/top-img.gif" width="814" height="201">
				</td>
			</tr>
		</table>
			<table width="817" bgcolor="#FFFFFF" align="center"
				background="images/bg.gif">
				<tr>
					<td height="279">
						<table width="100%" border="0" cellpadding="0" cellspacing="0"
							background="images/zxbm_1_2.gif">
							<tr>
								<td width="136" align="center">&nbsp;</td>
								<td align="left">
									<br>
								</td>
							</tr>
						</table>
						<table width="800" border="0" cellpadding="5" cellspacing="0"
							class="tdline" align="center">
							<tr>
								<td height="30" align="left">
									<strong> · 修改密码</strong>								</td>
								<td align="right">
									<span class="style4"> </span> 注意
									<font color="red">*</font>表示必填项；英文和数字应为半角字符
								</td>
							</tr>
						</table>
						<br>
						<form action="updatePassw.action" method="post" name="form1"  onsubmit="return vilidateSubmit();">
						<table width="760" border="0" align="center" cellpadding="2"
							cellspacing="1" bgcolor="#CCCCCC">
							<s:hidden name="basicinfoModel.zlid2" />
							<tr bgcolor="#FFFFFF">
								<td align="right" valign="middle">
									输入新密码：								</td>
								<td width="374" align="center" valign="middle">
									<s:password name="basicinfoModel.passw" required="true"
										cssClass="id_kuang" theme="simple"></s:password>								</td>
								<td width="121" align="center" valign="middle">&nbsp;
									<font color="red">*</font>								</td>
							</tr>
							<tr bgcolor="#FFFFFF" >
								<td height="23" align="right">确认新密码：</td>
								<td align="center"><s:password name="basicinfoModel.passw1" required="true"
										cssClass="id_kuang" theme="simple"></s:password></td>
							    <td align="center">&nbsp; <font color="red">*</font></td>
							</tr>
							<tr bgcolor="#FFFFFF">
								<td colspan="3">								</td>
							</tr>
							<tr align="center" valign="middle" bgcolor="#FFFFFF">
								<td colspan="3"><input name="button" class="btn1" type="submit" id="button" value="确定">								</td>
							</tr>
						</table>
						</form>				  </td>
				</tr>
				<tr>
					<td height="7"></td>
				</tr>
			</table>
			<table width="817" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td height="85" align="center"
						background="images/index-new-4-3_19.gif" bgcolor="#FFFFFF"
						class="font18 style2">
						版权所有：北京市发明专利奖评选工作办公室
					  <br>
						地址：北京市海淀区知春路23号量子银座二层209室 邮编：100191 联系电话：010-82354948、82356446-823
						<br>
						Copyright·2007 All Rights Reserved
				  </td>
				</tr>
				<tr>
					<td align="center" bgcolor="#FFFFFF">&nbsp;
						

					</td>
				</tr>
			</table>
	</body>
</html>
